using System;
using FluentNHibernate.Automapping;
using FluentNHibernate.Automapping.Alterations;
using MvcMall.Core.Domains;

namespace MvcMall.Data.NHibernateMaps
{
    public class StoreShippingMap:IAutoMappingOverride<StoreShipping>
    {
        public void Override(AutoMapping<StoreShipping> mapping)
        {
            mapping.References(c => c.Store).Column("StoreId");
        }
    }
}